package com.orion.service;

import com.orion.entity.User;
import com.orion.service.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Administrator
 * @date 2022/2/16
 */
@Service
@FeignClient(value = "separate-provider", fallback = UserServiceFallback.class)
public interface UserService {

    @GetMapping("/user/save")
    boolean save(@SpringQueryMap User entity);
}
